package com.hps.spring.cloud.alibaba.dubbo.service.impl;

import com.hps.spring.cloud.alibaba.dubbo.entity.User;
import com.hps.spring.cloud.alibaba.dubbo.service.IUserService;
import org.apache.dubbo.config.annotation.Service;

/**
 * @author heps
 * @since 2020/11/3 16:39
 */
@Service
public class UserServiceImpl implements IUserService {

  @Override
  public User getById(Long id) {
    User user = new User();
    user.setId(id);
    user.setName("Test");
    user.setAge(18);
    return user;
  }
}
